<!DOCTYPE html>
<html>
<head>
<style>
img {
  width: 33%;
  height: auto;
  float: left; 
}
.blur {filter: blur(2px);}
.brightness {filter: brightness(0.5);}
.contrast {filter: contrast(300%);}
.grayscale {filter: grayscale(100%);}
.huerotate {filter: hue-rotate(320deg);}
.invert {filter: invert(100%);}
.opacity {filter: opacity(50%);}
.saturate {filter: saturate(7);}
.sepia {filter: sepia(100%);}
.shadow {filter: drop-shadow(8px 8px 10px green);}
</style>
</head>
<body>

<h1>filter 属性</h1>

<img src="../static/img/tulip.jpg" alt="Tulip" width="300" height="300">
<img class="blur" src="../static/img/tulip.jpg" alt="Tulip" width="300" height="300">
<img class="brightness" src="../static/img/tulip.jpg" alt="Tulip" width="300" height="300">
<img class="contrast" src="../static/img/tulip.jpg" alt="Tulip" width="300" height="300">
<img class="grayscale" src="../static/img/tulip.jpg" alt="Tulip" width="300" height="300">
<img class="huerotate" src="../static/img/tulip.jpg" alt="Tulip" width="300" height="300">
<img class="invert" src="../static/img/tulip.jpg" alt="Tulip" width="300" height="300">
<img class="opacity" src="../static/img/tulip.jpg" alt="Tulip" width="300" height="300">
<img class="saturate" src="../static/img/tulip.jpg" alt="Tulip" width="300" height="300">
<img class="sepia" src="../static/img/tulip.jpg" alt="Tulip" width="300" height="300">
<img class="shadow" src="../static/img/tulip.jpg" alt="Tulip" width="300" height="300">

<p><b>注释：</b>Edge 12 或 Internet Explorer 不支持 filter 属性。</p>

</body>
</html>
